import { ImageService, PermissionService } from "maishu-services-sdk";
import { serviceHost } from "json!websiteConfig";


// let configText = require("text!projectWebConfig");
// let websiteConfig: MyWebSiteConfig = JSON.parse(configText);
// const serviceHost = `127.0.0.1:${websiteConfig.ports.nodeAuth}`;

let { protocol, host, pathname } = location;

ImageService.baseUrl = `/image`;
PermissionService.baseUrl = `/auth`;

export let config = {
    serviceHost,
    shopUrl: `/UserShop/`,
    weixinUrl: `/UserWeiXin/`,
    siteUrl: `/UserSite/`,
    memberUrl: `/UserMember/`,
    accountUrl: `/UserAccount/`,
    stockUrl: `/UserStock/`,

    pageSize: 10
    // imageUrl: imageServiceBaseUrl,
}